package com.qf.hsr.pojo;

import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author q
 * @version V1.0
 * @date 2021/11/08
 **/
//@Component //<bean id="user" class="com.qf.hsr.pojo.User"//>
@Component("myUser")  //<bean id="myUser" class="com.qf.hsr.pojo.User"//>
public class User {

    private Integer id;
    private String username;
    private Double balance;
    private Date birthday;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", balance=" + balance +
                ", birthday=" + birthday +
                '}';
    }
}
